Modules | categories I/O, Modules and System Interface Global Variables and Constants |
Command line handling |
CLAIRE offers the possibility to define global variables; they are named objects from the following class :
global_variable <: thing(range:type, value:any) |
tata :: global_variable(range = integer, value = 12) |
tata:integer :: 12 |
tata := 12, tata :+ 1, tata :- 10 |
talk:boolean :: unknown (#if talk printf(...)) |
toto :: 13 |
exp :: Logic/Algebra/exp |
store(tata) (tata := 1, choice(), tata := 2, backtrack(), assert(tata = 1)) |